package com.onec.service.manage.dao;


import com.onec.service.api.enums.StatusEnum;
import com.onec.service.manage.entity.PermissionInfo;
import com.onec.service.manage.entity.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 处理管理袁信息
 *
 * @author onec
 */
@Repository
public interface PermissionInfoMapper {


    /**
     * 手机号查询
     *
     * @param permissionId
     * @param status
     * @return
     */
    PermissionInfo selectPermissionById(@Param("permissionId") Long permissionId, @Param("status") StatusEnum status);


    /**
     * 插入用户记录
     *
     * @param userInfo
     * @return
     */
    int insertUserInfo(@Param("userInfo") UserInfo userInfo);

}
